<?php

namespace App\Http\Controllers\Api;

use App;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\TimeLine;

class NoticeController extends Controller
{
    //数据
    public function index(Request $request)
    {
        $count = App\Model\Notice::count();
        $key = $request->input('key');
        $page = $request->input('page');
        $limit = $request->input('limit');
        $model = new App\Model\Notice();
        $pagine = pagine($model, $page, $limit, $key, $count);
        $data = $pagine->get();
        return table_return('0', '获取成功', $count, $data);
    }
}
